﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListDVKH.ascx.cs" Inherits="Admin_ucControl_ListDVKH" %>
<div id="tabledata" class="section">
    <h2 class="ico_mug">
        DANH MỤC KHÁCH HÀNG</h2>
    <asp:HyperLink ID="hypNews_new" runat="server" Style="color: Blue" NavigateUrl="~/Admin/ThemSanPham.aspx">
            <h3>Thêm khách hàng</h3>
    </asp:HyperLink>
    <br />
    <asp:GridView ID="grdItems" runat="server" CssClass="yui" AutoGenerateColumns="False"
        EmptyDataText="Không có sản phẩm" Width="90%" CellPadding="4" BackColor="White"
        BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" AllowPaging="True"
        PageSize="15" OnPageIndexChanging="grdItems_PageIndexChanging" OnRowDataBound="grdItems_RowDataBound"
        Style="margin-bottom: 0px">
        <RowStyle BackColor="White" ForeColor="#330099" />
        <Columns>
            <asp:BoundField DataField="IDDVKH" HeaderText="ID" ItemStyle-Width="120px" />
            <asp:HyperLinkField DataNavigateUrlFields="IDDVKH" DataTextField="TieuDe" HeaderText="Tiêu đề"
                DataNavigateUrlFormatString="~/Admin/ThemDVKH.aspx?id={0}">
                <ItemStyle ForeColor="Blue" />
            </asp:HyperLinkField>
            <asp:TemplateField HeaderText="Confirm">
                <ItemTemplate>
                    <asp:ImageButton ID="btnUpdate" runat="server" ToolTip="Update Product" CommandName="Confirm"
                        OnClick="btnUpdate_Click" CommandArgument='<%# Eval("IDDVKH") %>' ImageUrl="~/Admin/img/config.png"
                        Style="width: 16px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:ImageButton ID="btnConfirm" runat="server" ToolTip="Delete Product" CommandName="Delete"
                        OnClick="btnConfirm_Click" CommandArgument='<%# Eval("IDDVKH") %>' ImageUrl="~/Admin/img/Del.png" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="70px" />
                <HeaderStyle HorizontalAlign="Center" ForeColor="White" />
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="clsGrdHeader" />
        <RowStyle CssClass="clsGrdRow" />
        <AlternatingRowStyle CssClass="clsGrdAlternateRow" />
        <PagerStyle CssClass="clsPage" />
    </asp:GridView>
</div>
